package workspace.teaweb.Logistics.mappers;

import org.apache.ibatis.annotations.Param;
import workspace.teaweb.CRM.pojo.vo.CRMVO;
import workspace.teaweb.Logistics.pojo.dto.OrderDto;
import workspace.teaweb.Logistics.pojo.entity.Order;

import workspace.teaweb.Logistics.pojo.dto.UserOrder;
import workspace.teaweb.Logistics.pojo.vo.orderVO;

import java.util.List;

public interface OrderMapper {
            //增加订单
    void CRMinsertOrder(Order order);//员工增加订单，仓库需求
    void UserinsertOrder(Order order);//客户增加订单
    //改变订单状态
    void CRMupdateOrderStatus(Order order);

    //查询订单
    List<Order> CRMselectOrderById(OrderDto order,@Param("CRMid") int CRMid);
    Order selectOrderByLogisticsid(int logisticsid);


    List<orderVO> UserselectOrderById(Long userid);

    void UserupdateOrderStatus(Order order);

    List<orderVO> AdminselectOrderById(Long adminId);

    List<orderVO> AdminselectOrderByOrderId(Long orderId);

    void AdminupdateOrder(Order order);
}
